/*
 * Copyright (c) 2019 Wormpex.com. All Rights Reserved.
 */

package com.sk.agent.javaag;

import jdk.internal.org.objectweb.asm.ClassVisitor;
import jdk.internal.org.objectweb.asm.MethodVisitor;
import jdk.internal.org.objectweb.asm.Opcodes;

/**
 * @author ke.su date: 2019-11-12 Time: 下午2:56
 */
public class TimeStatClassAdapter extends ClassVisitor {
    public TimeStatClassAdapter(ClassVisitor cv) {
        super(Opcodes.ASM5, cv);
    }

    @Override
    public MethodVisitor visitMethod(int i, String s, String s1, String s2, String[] strings) {

        MethodVisitor mv = cv.visitMethod(i, s, s1, s2, strings);

        MethodVisitor warppedMv = new TimeStatMethodAdapter(mv);

        return warppedMv;
    }


}
